package com.nlelpct.enums;


import com.nlelpct.constant.ResponseCode;

/**
 * @author :小马
 * @date : 2023-07-13
 */
public enum ResponseEnum {
    /**
     * 通用成功
     */
    SUCCESS_ENUM(ResponseCode.SUCCESS, "通用成功"),
    /**
     * 通用失败
     */
    ORDINARY_FAIL_ENUM(ResponseCode.ORDINARY_FAIL, "通用失败"),
    /**
     * 请求头中没有Token字符串
     */
    TOKEN_NOT_FIND_ENUM(ResponseCode.TOKEN_NOT_FIND, "请求头中没有Token字符串"),
    /**
     * token 过期
     */
    TOKEN_EXPIRED_ENUM(ResponseCode.TOKEN_EXPIRED, "token 过期"),
    /**
     * 没有该资源的权限
     */
    NO_PERMISSION_ENUM(ResponseCode.NO_PERMISSION, "没有该资源的权限"),
    /**
     * 用户名或密码错误
     */
    USERNAME_PASSWORD_ERROR_ENUM(ResponseCode.USERNAME_PASSWORD_ERROR, "用户名或密码错误");

    public Integer status;
    public String message;

    ResponseEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }
}
